﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminViews/Admin.Master" AutoEventWireup="true" CodeBehind="ListRegulation.aspx.cs" Inherits="BestBuy.AdminViews.ListRegulation" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <div class="form-horizontal">
       <fieldset>
            <legend>List regulations</legend>
          <asp:GridView ID="data" runat="server" AutoGenerateColumns="False"  BackColor="White" 
        BorderColor="#3366CC" Width = "100%">

    <Columns>
        <asp:BoundField DataField="ID" HeaderText="ID"/>
        <asp:TemplateField HeaderText="Name">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Name") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Name" runat="server" Text='<%# Bind("Name") %>' />
            </ItemTemplate>
        </asp:TemplateField>
    <asp:TemplateField HeaderText="Detail">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Detail") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Detail" runat="server" Text='<%# Bind("Detail") %>' />
            </ItemTemplate>
        </asp:TemplateField>

         <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Button CssClass="btn" Text="Delete" id="DeleteButton" runat="server" OnClick="DeleteButtion_Click"
                                  OnClientClick="javascript:ShowConfirm('Are you sure?', this); return false;" ObjectId='<%# Eval("ID") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
  <%--      <asp:TemplateField>
         <ItemTemplate>
              <asp:Button CssClass="btn" Text="Cập nhật" id="UpdateButton" runat="server" OnClick="UpdateButtion_Click"
                                  OnClientClick="javascript:ShowConfirm('Are you sure?', this); return false;" ObjectId='<%# Eval("ID") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>--%>
     
    </Columns>
    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
    <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
    <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
    <RowStyle BackColor="White" ForeColor="#003399" />
    <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
    <SortedAscendingCellStyle BackColor="#EDF6F6" />
    <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
    <SortedDescendingCellStyle BackColor="#D6DFDF" />
    <SortedDescendingHeaderStyle BackColor="#002876" />
</asp:GridView>
         
                
      </fieldset>
      </div>
</asp:Content>
